import React from "react";
import "./App.css";
// import {LoginScreen} from "./screens/login";
import { useAuth } from "./context/auth-context";
import { AuthenticatedApp } from "./pages/authenticated-app/authenticated-app";
import { UnauthenticatedApp } from "./pages/unauthenticated-app";
// import { ProjectListScreen } from "screens/project-list";
// import {TsReactTest} from "./tryUseArray";

function App() {
  const { user } = useAuth();
  return (
    <div className="App">
      {user ? <AuthenticatedApp /> : <UnauthenticatedApp />}
    </div>
  );
}

export default App;
